<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>cameraListTest</title>
    <script type="text/javascript" src="./jquery-1.10.2.js"></script>
    <script type="text/javascript" src="camerainfos.js"></script>
	
	<script type="text/javascript">
		function init(){
			initAndGetCameraInfos(function(infos){
				alert(JSON.stringify(infos));

				afterLoad();
			});
		}

		function afterLoad(){
			var name = "Virtual Cam";
			alert("getCameraIdByName, 摄像头名称:" + name + ", id:" + getCameraIdByName(name));
            name = "Integrated Camera (0bda:5719)";
            alert("getCameraIdByName, 摄像头名称:" + name + ", id:" + getCameraIdByName(name));
		}
	</script>
</head>
<body onload="init();">
</body>
</html>